﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    <script src="@Url.Content( "~/Scripts/bootstrap.min.js" )" type="text/javascript"></script>
    <link href="@Url.Content( "~/Content/bootstrap.css" )" rel="stylesheet" media="screen" />
    @Styles.Render( "~/Content/css" )
    @Scripts.Render( "~/bundles/modernizr" )
    @Scripts.Render( "~/bundles/jquery" )
    @Styles.Render( "~/Content/themes/base/css" )
    @Scripts.Render( "~/bundles/jqueryui" )
    @Scripts.Render("~/bundles/jqueryval")
   
    <script src="@Url.Content( "~/Scripts/script.js" )" type="text/javascript"></script>
    
</head>
<body>
    <header>
        <div class="content-wrapper">
            <div class="float-left">
                <p class="site-title">@Html.ActionLink( "YAZILIM GELİŞTİRME LAB" , "Index" , "Home" )</p>
            </div>
            <div class="float-right">
                <section id="login">
                    @Html.Partial( "_LoginPartial" )
                </section>
                <nav>

                    <ul id="menu">
                        <li>@Html.ActionLink( "Anasayfa" , "Index" , "Home" )</li>
                        <li>@Html.ActionLink( "Dergi Ara" , "Dergi" , "Ara" )</li>
                        <li>@Html.ActionLink( "Makale Ara" , "Makale" , "Ara" )</li>
                        <li>@Html.ActionLink( "Yazar Ara" , "Yazar" , "Ara" )</li>
                        <li>@Html.ActionLink( "Hakkımızda" , "About" , "Home" )</li>
                        <li>@Html.ActionLink( "iletişim" , "Contact" , "Home" )</li>
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <div id="body">
        @if( Request.IsAuthenticated ) {
            bool isActiveUser = false;
            <section class="featured">
                <div class="content-wrapper">
                    <hgroup class="title">
                        <h1>Hoşgeldin, @User.Identity.Name : Size özel yönetim işlevleri</h1>

                    </hgroup>
                    <div class="navbar">
                        <div class="navbar-inner">

                            <ul class="nav">



                                @if( User.Identity.Name.ToLower()=="admin") {
                                    isActiveUser = true;
                                    <li>@Html.ActionLink( "Kullanıcı" , "Index" , "Kullanici" )</li>
                                    <li>@Html.ActionLink( "Dergi" , "Index" , "Journal" )</li>
                                    <li>@Html.ActionLink( "Kategori" , "Index" , "Home" )</li>
                                    <li>@Html.ActionLink( "Bilim Dalı" , "Index" , "Home" )</li>
                                }

                                @if( User.IsInRole( "Yazar" ) ) {
                                    isActiveUser = true;
                                    
                                    <li>@Html.ActionLink( "Makale" , "Index" , "Journal" )</li>
                                }
                                @if( User.IsInRole( "Hakem" ) ) {
                                    isActiveUser = true;

                                }
                                @if( User.IsInRole( "Editör" ) ) {
                                    isActiveUser = true;

                                }

                                @if( isActiveUser == false ) {
                                    isActiveUser = true;
                                    <li><a>Üzerinize Tanımlı Görev Bulunamadı!</a></li>
                                }

                            </ul>
                        </div>
                    </div>
                </div>
            </section>
                
        }
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-left">
                <p>&copy; @DateTime.Now.Year - YAZILIM GELİŞTİRME LAB</p>
            </div>
        </div>
    </footer>

    @RenderSection( "scripts" , required: false )
</body>
</html>
